package com.hunan.api.catv.service.impl.system;

import com.hunan.api.catv.dao.BaseDao;
import com.hunan.api.catv.dao.SystemRoleAuthDao;
import com.hunan.api.catv.entity.po.SystemRoleAuth;
import com.hunan.api.catv.entity.vo.SystemRoleAuthVo;
import com.hunan.api.catv.service.impl.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service
public class SystemRoleAuthService extends CommonService<SystemRoleAuth, SystemRoleAuthVo, Integer> {

    @Autowired
    public SystemRoleAuthDao systemRoleAuthDao;

    @Override
    public BaseDao<SystemRoleAuth, SystemRoleAuthVo, Integer> getBaseDao() {
        return systemRoleAuthDao;
    }

    public List<SystemRoleAuthVo> getList(Integer sysRoleId) {
        return systemRoleAuthDao.getList(sysRoleId);
    }
}